package com.laoma.ordercenter.service;

import com.laoma.ordercenter.common.CommonResponse;
import com.laoma.ordercenter.dao.entity.OrderMaster;
import com.laoma.ordercenter.dto.response.OrderSearchResponse;

/**
 * @program: SpringCloudDemos
 * @description: 订单服务接口类
 * @author: 老马
 * @create: 2021-06-22 14:15
 **/
public interface OrderService {

    /**
    * @Description: 订单查询
    * @param: request
    * @return: java.util.List<com.laoma.ordercenter.dto.response.OrderSearchResponse>
    * @author: 老马
    * @Date: 2021/6/22 14:16
    */
    OrderSearchResponse orderQuery(String orderId);

    /**
    * @Description: 通过id获得订单主信息
    * @param: orderid
    * @return: com.laoma.ordercenter.dao.entity.OrderMaster
    * @author: 老马
    * @Date: 2021/6/25 9:34
    */
    OrderMaster orderQueryById(String orderid);

    /***
    * @apiNote 测试下单接口
    * @param productId
    * @return com.laoma.ordercenter.common.CommonResponse
    * @author 老马
    * @date 2022/1/25 09:18
    */
    CommonResponse makeOrder(String productId) throws Exception;
}

